<script type="text/javascript">
	function loadBaiTime(baiId, baiTime){
		if(baiTime != null && baiTime != ""){
			$("#" + baiId).html(baiTime.substring(0, 11));
		}
	}
</script>

[#-- 创建站内快讯分页列表自定义宏。参数说明：par_articleListPM（站内快讯分页实体）--]
[#macro ecs_ud_articlelistpm par_articleListPM]
	<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
      	<tr>
	        <th bgcolor="#ffffff">文章标题</th>
	        <th bgcolor="#ffffff">作者</th>
	        <th bgcolor="#ffffff">添加日期</th>
	    </tr>
      	[#if (par_articleListPM.data) ??]
	      	[#list par_articleListPM.data as article] 
	      		<tr>
			        <td bgcolor="#ffffff">
			        	<a href="${var_contextpath}/articleDetails.xhtml?baiId=${article.baiId}&baiGroup=${article.baiGroup}" title="${article.baiTitle}" class="f6">${article.baiTitle}</a>
			        </td>
			        <td bgcolor="#ffffff">
			        	${article.baiAuthor}
			        </td>
			        <td bgcolor="#ffffff" align="center">
			        	<span id="${article.baiId}">
			        		<script type="text/javascript">
								loadBaiTime("${article.baiId}", "${article.baiTime}");
							</script>
			        	</span>
			        </td>
		      	</tr>
	      	[/#list]	
	    [/#if]
     </table>
[/#macro]